# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.4.1)


add_library(
        sg_face
        SHARED
        sg_face.cpp
        FaceTrack.cpp)


include_directories(include)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -L${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}")

add_subdirectory(FaceAlignment)
include_directories(FaceAlignment/include)

find_library(
        log-lib
        log)


target_link_libraries(
        sg_face
        opencv_java3
        seeta_fa_lib
        ${log-lib})